﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Owl.Contracts;
using Owl.Questionnarie.Entities;
using Owl.Questionnarie.DAL;


namespace Owl.Questionnarie.BLL
{
    public class ChoiceBLL : ICrud<Choices, Guid>
    {
        public Choices GetById(Guid key)
        {
            return new ChoiceDAL().GetById(key);
        }

        public List<Choices> GetAll()
        {
            return new ChoiceDAL().GetAll();
        }

        public Choices Insert(Choices entity)
        {
            return new ChoiceDAL().Insert(entity);
        }

        public void Update(Choices entity)
        {
            new ChoiceDAL().Update(entity);
        }

        public void Delete(Guid key)
        {
            new ChoiceDAL().Delete(key);
        }

        public List<Choices>GetByString(String text)
        {
            return new ChoiceDAL().GetByString(text);
        }
    }
}
